package com.example.lxj.judicial.service.impl;

import java.util.List;

import cn.hutool.core.date.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.lxj.judicial.mapper.TbIdentificationAnalysisMapper;
import com.example.lxj.judicial.entity.TbIdentificationAnalysis;
import com.example.lxj.judicial.service.ITbIdentificationAnalysisService;

/**
 * 鉴定结果分析Service业务层处理
 * 
 * @author lxj
 * @date 2024-10-24
 */
@Service
public class TbIdentificationAnalysisServiceImpl implements ITbIdentificationAnalysisService 
{
    @Autowired
    private TbIdentificationAnalysisMapper tbIdentificationAnalysisMapper;

    /**
     * 查询鉴定结果分析
     * 
     * @param id 鉴定结果分析主键
     * @return 鉴定结果分析
     */
    @Override
    public TbIdentificationAnalysis selectTbIdentificationAnalysisById(Long id)
    {
        return tbIdentificationAnalysisMapper.selectTbIdentificationAnalysisById(id);
    }

    /**
     * 查询鉴定结果分析列表
     * 
     * @param tbIdentificationAnalysis 鉴定结果分析
     * @return 鉴定结果分析
     */
    @Override
    public List<TbIdentificationAnalysis> selectTbIdentificationAnalysisList(TbIdentificationAnalysis tbIdentificationAnalysis)
    {
        return tbIdentificationAnalysisMapper.selectTbIdentificationAnalysisList(tbIdentificationAnalysis);
    }

    /**
     * 新增鉴定结果分析
     * 
     * @param tbIdentificationAnalysis 鉴定结果分析
     * @return 结果
     */
    @Override
    public int insertTbIdentificationAnalysis(TbIdentificationAnalysis tbIdentificationAnalysis)
    {
        tbIdentificationAnalysis.setCreateTime(DateUtil.date());
        return tbIdentificationAnalysisMapper.insertTbIdentificationAnalysis(tbIdentificationAnalysis);
    }

    /**
     * 修改鉴定结果分析
     * 
     * @param tbIdentificationAnalysis 鉴定结果分析
     * @return 结果
     */
    @Override
    public int updateTbIdentificationAnalysis(TbIdentificationAnalysis tbIdentificationAnalysis)
    {
        tbIdentificationAnalysis.setUpdateTime(DateUtil.date());
        return tbIdentificationAnalysisMapper.updateTbIdentificationAnalysis(tbIdentificationAnalysis);
    }

    /**
     * 批量删除鉴定结果分析
     * 
     * @param ids 需要删除的鉴定结果分析主键
     * @return 结果
     */
    @Override
    public int deleteTbIdentificationAnalysisByIds(Long[] ids)
    {
        return tbIdentificationAnalysisMapper.deleteTbIdentificationAnalysisByIds(ids);
    }

    /**
     * 删除鉴定结果分析信息
     * 
     * @param id 鉴定结果分析主键
     * @return 结果
     */
    @Override
    public int deleteTbIdentificationAnalysisById(Long id)
    {
        return tbIdentificationAnalysisMapper.deleteTbIdentificationAnalysisById(id);
    }
}
